package zl8.com;

/**
 * Created with Intellij IDEA.
 * Description:
 * User:张蕾
 * Date:2023-06-07
 * Time:0:41
 */
public class PC {
    CPU cpu;
    HardDisk hd;

    public CPU getCpu() {
        return cpu;
    }

    public void setCpu(CPU cpu) {
        this.cpu = cpu;
    }

    public HardDisk getHd() {
        return hd;
    }

    public void setHd(HardDisk hd) {
        this.hd = hd;
    }

    void show(){
        System.out.println("速度："+cpu.getSpeed());
        System.out.println("硬盘的容量："+hd.getAmount());
    }
}
